// 获取所有分类
const getAllCategories = async (ctx) => {
  const coll = await ctx.mongoClient.db().collection("categories");
  const categories = await coll.find().toArray();
  return categories;
};

module.exports = {
  getAllCategories,
};
